package com.cloud.hotline.api.entity;

import java.util.Date;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "to_hotline_revisit_record")
public class ToHotlineRevisitRecord {
	@Id
	@Column(name = "record_id")
	private Integer recordId;

	@Column(name = "yessw_num")
	private String yesswNum;

	@Column(name = "dispatch_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date dispatchTime;

	@Column(name = "revisit_type")
	private String revisitType;

	@Column(name = "unit_name")
	private String unitName;

	@Column(name = "unit_type")
	private String unitType;

	@Column(name = "record_src_name")
	private String recordSrcName;

	@Column(name = "reporter_name")
	private String reporterName;

	@Column(name = "call_num")
	private String callNum;

	@Column(name = "contact_flag")
	private String contactFlag;

	@Column(name = "answer_flag")
	private String answerFlag;

	@Column(name = "finish_flag")
	private String finishFlag;

	@Column(name = "pleased_flag")
	private String pleasedFlag;

	@Column(name = "dispatch_type")
	private String dispatchType;

	@Column(name = "rec_num")
	private String recNum;

	private String remark;

	@Column(name = "state_date")
	private Date stateDate;

	@Column(name = "insert_time")
	private Date insertTime;

	@Column(name = "delete_flag")
	private Integer deleteFlag;

	@Column(name = "delete_time")
	private Date deleteTime;

	@Column(name = "record_desc")
	private String recordDesc;

	@Column(name = "record_handle_proc")
	private String recordHandleProc;

	@Transient
	private String errorMsg = "";
	
	/**
	 * @return record_id
	 */
	public Integer getRecordId() {
		return recordId;
	}

	/**
	 * @param recordId
	 */
	public void setRecordId(Integer recordId) {
		this.recordId = recordId;
	}

	public String getYesswNum() {
		return yesswNum;
	}

	public void setYesswNum(String yesswNum) {
		this.yesswNum = yesswNum;
	}

	public Date getDispatchTime() {
		return dispatchTime;
	}

	public void setDispatchTime(Date dispatchTime) {
		this.dispatchTime = dispatchTime;
	}

	public String getRevisitType() {
		return revisitType;
	}

	public void setRevisitType(String revisitType) {
		this.revisitType = revisitType;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getRecordSrcName() {
		return recordSrcName;
	}

	public void setRecordSrcName(String recordSrcName) {
		this.recordSrcName = recordSrcName;
	}

	public String getReporterName() {
		return reporterName;
	}

	public void setReporterName(String reporterName) {
		this.reporterName = reporterName;
	}

	public String getCallNum() {
		return callNum;
	}

	public void setCallNum(String callNum) {
		this.callNum = callNum;
	}

	public String getContactFlag() {
		return contactFlag;
	}

	public void setContactFlag(String contactFlag) {
		this.contactFlag = contactFlag;
	}

	public String getAnswerFlag() {
		return answerFlag;
	}

	public void setAnswerFlag(String answerFlag) {
		this.answerFlag = answerFlag;
	}

	public String getFinishFlag() {
		return finishFlag;
	}

	public void setFinishFlag(String finishFlag) {
		this.finishFlag = finishFlag;
	}

	public String getPleasedFlag() {
		return pleasedFlag;
	}

	public void setPleasedFlag(String pleasedFlag) {
		this.pleasedFlag = pleasedFlag;
	}

	public String getDispatchType() {
		return dispatchType;
	}

	public void setDispatchType(String dispatchType) {
		this.dispatchType = dispatchType;
	}

	public String getRecNum() {
		return recNum;
	}

	public void setRecNum(String recNum) {
		this.recNum = recNum;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getStateDate() {
		return stateDate;
	}

	public void setStateDate(Date stateDate) {
		this.stateDate = stateDate;
	}

	public Date getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public Date getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(Date deleteTime) {
		this.deleteTime = deleteTime;
	}

	public String getRecordDesc() {
		return recordDesc;
	}

	public void setRecordDesc(String recordDesc) {
		this.recordDesc = recordDesc;
	}

	public String getRecordHandleProc() {
		return recordHandleProc;
	}

	public void setRecordHandleProc(String recordHandleProc) {
		this.recordHandleProc = recordHandleProc;
	}

	public String getUnitType() {
		return unitType;
	}

	public void setUnitType(String unitType) {
		this.unitType = unitType;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
	
}